// Copyright (c) 2020 Presto Labs Pte. Ltd.
// Author: jing

#pragma once

#include <map>
#include <memory>
#include <regex>
#include <string>
#include <vector>

// internal
#include "coin2/exchange/base/feed/processor.h"
#include "coin2/exchange/base/market/enums.h"

namespace coin2::exchange::upbit::feed_v1 {
namespace impl {
using namespace coin2::exchange::base::symbology;
class UpbitFeedProcessor : public base::feed::FeedParsingProcessor {
 public:
  explicit UpbitFeedProcessor(
      const std::string& system_name,
      const MarketExchangeApi& mea,
      const coin2::exchange::di::ConstantInjection& ci,
      const feed::RawParserConfig& config)
      : FeedParsingProcessor(
            system_name,
            mea,
            ci,
            config,
            "cc/coin2/exchange/upbit/feed_v1/schema.json") {}

  void OnTopicRecord(const base::executor::TopicRecordPacket& packet) override;
};

}  // namespace impl
using impl::UpbitFeedProcessor;
}  // namespace coin2::exchange::upbit::feed_v1
